home *** CD-ROM | disk | FTP | other *** search
/ ShareWare OnLine 2 / ShareWare OnLine Volume 2 (CMS Software)(1993).iso / linux / slsv1ab4.zip / LPR.TPZ / LPR.tar / usr / man / cat5 / printcap.5.Z / printcap.5
Text File  |  1992-12-26  |  9KB  |  199 lines

  1.  
  2. PRINTCAP(5)                UNIX Programmer's Manual                PRINTCAP(5)
  3.  
  4. NNAAMMEE
  5.      pprriinnttccaapp - printer capability data base
  6.  
  7. SSYYNNOOPPSSIISS
  8.      pprriinnttccaapp
  9.  
  10. DDEESSCCRRIIPPTTIIOONN
  11.      The PPrriinnttccaapp function is a simplified version of the termcap(5) data base
  12.      used to describe line printers.  The spooling system accesses the
  13.      pprriinnttccaapp file every time it is used, allowing dynamic addition and dele-
  14.      tion of printers.  Each entry in the data base is used to describe one
  15.      printer.  This data base may not be substituted for, as is possible for
  16.      termcap,  because it may allow accounting to be bypassed.
  17.  
  18.      The default printer is normally _l_p, though the environment variable
  19.      PRINTER may be used to override this.  Each spooling utility supports an
  20.      option, --PP _p_r_i_n_t_e_r, to allow explicit naming of a destination printer.
  21.  
  22.      Refer to the _4_._3 _B_S_D _L_i_n_e _P_r_i_n_t_e_r _S_p_o_o_l_e_r _M_a_n_u_a_l for a complete discus-
  23.      sion on how setup the database for a given printer.
  24.  
  25. CCAAPPAABBIILLIITTIIEESS
  26.      Refer to termcap(5) for a description of the file layout.
  27.  
  28.      NNaammee       TTyyppee      DDeessccrriippttiioonn
  29.      af         str       NULL                   name of accounting file
  30.      br         num       none                   if lp is a tty, set the baud
  31.                                                  rate (ioctl(2) call)
  32.      cf         str       NULL                   cifplot data filter
  33.      df         str       NULL                   tex data filter (DVI format)
  34.      fc         num       0                      if lp is a tty, clear flag
  35.                                                  bits (_s_g_t_t_y_._h)
  36.      ff         str       `\f'                   string to send for a form
  37.                                                  feed
  38.      fo         bool      false                  print a form feed when device
  39.                                                  is opened
  40.      fs         num       0                      like `fc' but set bits
  41.      gf         str       NULL                   graph data filter (plot(3)
  42.                                                  format
  43.      hl         bool      false                  print the burst header page
  44.                                                  last
  45.      ic         bool      false                  driver supports (non
  46.                                                  standard) ioctl to indent
  47.                                                  printout
  48.      if         str       NULL                   name of text filter which
  49.                                                  does accounting
  50.      lf         str       _/_d_e_v_/_c_o_n_s_o_l_e           error logging file name
  51.      lo         str       _l_o_c_k                   name of lock file
  52.      lp         str       _/_d_e_v_/_l_p                device name to open for
  53.                                                  output
  54.      mx         num       1000                   maximum file size (in BUFSIZ
  55.                                                  blocks), zero = unlimited
  56.      nd         str       NULL                   next directory for list of
  57.                                                  queues (unimplemented)
  58.      nf         str       NULL                   ditroff data filter (device
  59.                                                  independent troff)
  60.      of         str       NULL                   name of output filtering
  61.                                                  program
  62.      pc         num       200                    price per foot or page in
  63.                                                  hundredths of cents
  64.  
  65.  
  66.      pl         num       66                     page length (in lines)
  67.      pw         num       132                    page width (in characters)
  68.      px         num       0                      page width in pixels
  69.                                                  (horizontal)
  70.      py         num       0                      page length in pixels
  71.                                                  (vertical)
  72.      rf         str       NULL                   filter for printing FORTRAN
  73.                                                  style text files
  74.      rg         str       NULL                   restricted group. Only
  75.                                                  members of group allowed
  76.                                                  access
  77.      rm         str       NULL                   machine name for remote
  78.                                                  printer
  79.      rp         str       ``lp''                 remote printer name argument
  80.      rs         bool      false                  restrict remote users to
  81.                                                  those with local accounts
  82.      rw         bool      false                  open the printer device for
  83.                                                  reading and writing
  84.      sb         bool      false                  short banner (one line only)
  85.      sc         bool      false                  suppress multiple copies
  86.      sd         str       _/_v_a_r_/_s_p_o_o_l_/_l_p_d         spool directory
  87.      sf         bool      false                  suppress form feeds
  88.      sh         bool      false                  suppress printing of burst
  89.                                                  page header
  90.      st         str       _s_t_a_t_u_s                 status file name
  91.      tf         str       NULL                   troff data filter (cat
  92.                                                  phototypesetter)
  93.      tr         str       NULL                   trailer string to print when
  94.                                                  queue empties
  95.      vf         str       NULL                   raster image filter
  96.      xc         num       0                      if lp is a tty, clear local
  97.                                                  mode bits (tty(4))
  98.      xs         num       0                      like `xc' but set bits
  99.  
  100.      If the local line printer driver supports indentation, the daemon must
  101.      understand how to invoke it.
  102.  
  103. FFIILLTTEERRSS
  104.      The lpd(8) daemon creates a pipeline of _f_i_l_t_e_r_s to process files for var-
  105.      ious printer types.  The filters selected depend on the flags passed to
  106.      lpr(1).  The pipeline set up is:
  107.  
  108.            p       pr | if regular text + pr(1)
  109.            none    if      regular text
  110.            c       cf      cifplot
  111.            d       df      DVI (tex)
  112.            g       gf      plot(3)
  113.            n       nf      ditroff
  114.            f       rf      Fortran
  115.            t       tf      troff
  116.            v       vf      raster image
  117.  
  118.      The iiff filter is invoked with arguments:
  119.  
  120.            iiff [--cc] --ww_w_i_d_t_h --ll_l_e_n_g_t_h --ii_i_n_d_e_n_t --nn _l_o_g_i_n --hh _h_o_s_t _a_c_c_t_-_f_i_l_e
  121.  
  122.      The --cc flag is passed only if the --ll flag (pass control characters liter-
  123.      ally) is specified to lpr.  The _W_i_d_t_h function and _l_e_n_g_t_h specify the
  124.      page width and length (from ppww and ppll respectively) in characters.  The
  125.      --nn and --hh parameters specify the login name and host name of the owner of
  126.      the job respectively.  The _A_c_c_t_-_f_i_l_e function is passed from the aaff
  127.      pprriinnttccaapp entry.
  128.  
  129.      If no iiff is specified, ooff is used instead, with the distinction that ooff
  130.      is opened only once, while iiff is opened for every individual job.  Thus,
  131.      iiff is better suited to performing accounting.  The ooff is only given the
  132.      _w_i_d_t_h and _l_e_n_g_t_h flags.
  133.  
  134.      All other filters are called as:
  135.  
  136.            ffiilltteerr --xx_w_i_d_t_h --yy_l_e_n_g_t_h --nn _l_o_g_i_n --hh _h_o_s_t _a_c_c_t_-_f_i_l_e
  137.  
  138.      where _w_i_d_t_h and _l_e_n_g_t_h are represented in pixels, specified by the ppxx and
  139.      ppyy entries respectively.
  140.  
  141.      All filters take _s_t_d_i_n as the file, _s_t_d_o_u_t as the printer, may log either
  142.      to _s_t_d_e_r_r or using syslog(3),  and must not ignore SIGINT.
  143.  
  144. LLOOGGGGIINNGG
  145.      Error messages generated by the line printer programs themselves (that
  146.      is, the lp*  programs) are logged by syslog(3) using the LPR facility.
  147.      Messages printed on _s_t_d_e_r_r of one of the filters are sent to the corre-
  148.      sponding llff file.  The filters may, of course, use syslog themselves.
  149.  
  150.      Error messages sent to the console have a carriage return and a line feed
  151.      appended to them, rather than just a line feed.
  152.  
  153. SSEEEE AALLSSOO
  154.      termcap(5),  lpc(8),  lpd(8),  pac(8),  lpr(1),  lpq(1),  lprm(1)
  155.  
  156.      _4_._3 _B_S_D _L_i_n_e _P_r_i_n_t_e_r _S_p_o_o_l_e_r _M_a_n_u_a_l.
  157.  
  158. HHIISSTTOORRYY
  159.      The pprriinnttccaapp file format appeared in 4.2BSD..
  160.  
  161. 4.2 Berkeley Distribution        May 10, 1991                                3
  162.  
  163.  
  164.  
  165.  
  166.  
  167.  
  168.  
  169.  
  170.  
  171.  
  172.  
  173.  
  174.  
  175.  
  176.  
  177.  
  178.  
  179.  
  180.  
  181.  
  182.  
  183.  
  184.  
  185.  
  186.  
  187.  
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.  
  196.  
  197.  
  198.  
  199.